<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>模具详情</title>
    <link rel="stylesheet" type="text/css" href="/sh/css/index.css">
    <link rel="stylesheet" type="text/css" href="/sh/css/mould.css">
    <script type="text/javascript" src="/sh/js/plugin.js"></script>
    <script type="text/javascript" src="/sh/js/comm.js"></script>
    <!-- Add mousewheel plugin (this is optional) -->
    <script type="text/javascript" src="/sh/js/jquery.mousewheel.pack.js?v=3.1.3"></script>
    <!-- Add fancyBox main JS and CSS files -->
    <script type="text/javascript" src="/sh/js/jquery.fancybox.pack.js?v=2.1.5"></script>
    <link rel="stylesheet" type="text/css" href="/sh/css/jquery.fancybox.css?v=2.1.5" media="screen" />
    <script type="text/javascript" src="/sh/js/mould/mouldDetail.js"></script>
</head>
<body style="height: 100%">
<input type="hidden" th:value="${mould.id}" id="mouldId"/>
<div style="margin:20px 0;"></div>
<div class="easyui-panel addmould-main" title="模具详情"
     style="width:100%;max-width:500px;padding:10px 10px;">
    <form id="mouldDetailForm" method="post">
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="mouldNo" style="width:90%" data-options="label:'模具编号:',readonly:true" th:value="${mould.mouldNo}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="mouldColor" style="width:90%" data-options="label:'模具颜色:',readonly:true" th:value="${mould.mouldColor}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="mouldName" style="width:90%" data-options="label:'模具名称:',readonly:true" th:value="${mould.mouldName}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="spec" style="width:90%" data-options="label:'模具规格:',readonly:true" th:value="${mould.spec}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="modelNo" style="width:90%" data-options="label:'模具型号:'" th:value="${mould.modelNo}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="material" style="width:90%" data-options="label:'模具材质:',readonly:true" th:value="${mould.material}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="mouldClz" style="width:90%" data-options="label:'模具分类:',readonly:true" th:value="${mould.mouldClz}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="scope" style="width:90%" data-options="label:'适用范围:',readonly:true" th:value="${mould.scope}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="remark" style="width:90%" data-options="label:'备注信息:',readonly:true" th:value="${mould.remark}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="entryNickname" style="width:90%" data-options="label:'创建人:',readonly:true" th:value="${mould.entryNickname}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="entryTime" style="width:90%" data-options="label:'创建时间:',readonly:true" th:value="${#dates.format(mould.entryTime, 'yyyy年MM月dd日 HH时mm分ss秒')}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="updateNickname" style="width:90%" data-options="label:'修改人:',readonly:true" th:value="${mould.updateNickname}"/>
        </div>
        <div style="margin-bottom:10px">
            <input class="easyui-textbox" name="updateTime" style="width:90%" data-options="label:'修改时间:',readonly:true" th:value="${#dates.format(mould.updateTime, 'yyyy年MM月dd日 HH时mm分ss秒')}"/>
        </div>
        <div id="viewPicDiv" style="margin-left:80px;" th:if="${mould.appFileList != null}">
            <div th:each="appFile,iterStat:${mould.appFileList}">
                <div class="file-container" th:id="${'file_' + appFile.id}">
                    <input type='hidden' name='file_ids' th:value="${appFile.id}"/>
                    <img src='/sh/image/txt.png' th:if="${appFile.filePath != null && #strings.endsWith(appFile.filePath,'.txt')}"/>
                    <img src='/sh/image/img.png' th:if="${appFile.filePath != null && (#strings.endsWith(appFile.filePath,'.png') || #strings.endsWith(appFile.filePath,'.jpg') || #strings.endsWith(appFile.filePath,'.jpeg'))}"/>
                    <img src='/sh/image/rar.png' th:if="${appFile.filePath != null && (#strings.endsWith(appFile.filePath,'.rar') || #strings.endsWith(appFile.filePath,'.zip'))}"/>
                    <img src='/sh/image/pdf.png' th:if="${appFile.filePath != null && #strings.endsWith(appFile.filePath,'.pdf')}"/>
                    <img src='/sh/image/xls.png' th:if="${appFile.filePath != null && (#strings.endsWith(appFile.filePath,'.xls') || #strings.endsWith(appFile.filePath,'.xlsx'))}"/>
                    <img src='/sh/image/blue-document-word-text.png' th:if="${appFile.filePath == null || (!#strings.endsWith(appFile.filePath,'.txt') &&
                    !#strings.endsWith(appFile.filePath,'.png') && !#strings.endsWith(appFile.filePath,'.jpg') &&
                    !#strings.endsWith(appFile.filePath,'.jpeg') && !#strings.endsWith(appFile.filePath,'.rar') &&
                    !#strings.endsWith(appFile.filePath,'.zip') && !#strings.endsWith(appFile.filePath,'.pdf') &&
                    !#strings.endsWith(appFile.filePath,'.xls') && !#strings.endsWith(appFile.filePath,'.xlsx'))}"/>
                    <a th:href="'javascript:downloadFile(\''+${appFile.id}+'\')'">[[${appFile.fileName}]]</a>
                    <div class="file-row">
                        <a class="fancybox" th:href="${appFile.filePath}" data-fancybox-group="gallery" th:title="${appFile.fileName}">
                        <img th:src="${appFile.filePath}" width="100px" height="100px" id="viewPic"/>
                        </a>
                    </div>
                </div>
            </div>
        </div>
        <!--<div id="viewPicDiv" style="margin-left:80px;" th:if="${mould.picAddr != '' && mould.picAddr != null}">
            <a class="fancybox" th:href="${mould.picAddr}" data-fancybox-group="gallery" th:title="${mould.mouldName}">
            <img th:src="${mould.picAddr}" id="viewPic" width="160px" height="160px"/>
            </a>
        </div>-->
        <!--<c:if test="${mould.picAddr != null and mould.picAddr != ''}">
            <div id="viewPicDiv" style="margin-left:80px;">
                <img src="${mould.picAddr}" id="viewPic" width="100px" height="100px"/>
            </div>
        </c:if>-->
    </form>
    <!--<div style="text-align:center;padding:5px 0">
        <a href="javascript:void(0)" class="easyui-linkbutton" id="close" style="width:80px" iconCls="icon-clear">关闭</a>
    </div>-->
</div>
</body>
</html>